<div style="padding: 30px;" class="layui-form layui-form-pane"> <!-- 提示：如果你不想用form，你可以换成div等任何一个普通元素 -->
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i> 存酒手机：</label>
        <div class="layui-input-block">
            <input type="text" name="mobile" id="mobile" required lay-verify="required" placeholder="请输入手机号" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i> 酒名称：</label>
        <div class="layui-input-block">
            <select name="goods" >
                <option value="">请选择房间</option>
                {volist name="goods_list" id="vo"}
                <option value="{$vo.id}|{$vo.name}">{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i> 存酒数量：</label>
        <div class="layui-input-block">
            <input type="text" name="number" required lay-verify="required" placeholder="请输入存酒数量" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注：</label>
        <div class="layui-input-block">
            <textarea name="memo" placeholder="请输入简单备注" class="layui-textarea"></textarea>
        </div>
    </div>
    <button class="layui-btn layui-btn-fluid save-brand" lay-submit lay-filter="add-liquor">存入</button>
</div>

<script>
    layui.config({base: '__STATIC__/yutons-mods/'}).use(['form','layer', 'yutons_sug'],function(){
        var from = layui.form;
        var yutons_sug = layui.yutons_sug;
        var layer = layui.layer;
        yutons_sug.render({
            id: "mobile", //设置容器唯一id
            height: "167",
            type: 'sug', //设置输入框提示类型：sug-下拉框，sugTable-下拉表格
            url: "{:url('Api/getUser')}?params=" //设置异步数据接口,url为必填项
        });
        from.render();
    });
</script>